def special_tuple():
    info_tuple = ('zhangsan', 18, 2.9, 'zhangsan')
    print(info_tuple[0])
    info_tuple1 = (1,)  # 只有一个元组元素，必须加逗号，否则是小括号默认为运算符
    info_tuple2 = ('xiaoming', 21, 1.85)
    print('name %s ,age %d ,tall %.2f ' % info_tuple2)  # python中 tuple组合字符串
    info_tuple3 = 'name {} ,age {} ,tall {} '.format(info_tuple2[0], info_tuple2[1], info_tuple2[2])
    print(info_tuple3)


special_tuple()


def change_tuple():
    info_tuple = ('zhangsan', 18, 2.9, 'zhangsan')
    info_list = list(info_tuple)
    print(info_list)


change_tuple()
